lcPaint_DrawTextBC Home

Draws a text string below a barcode, using active font.

 BOOL lcPaint_DrawTextBC (
   HANDLE hLcWnd,
   HANDLE hMpgon,
   double Gap,
   double Height,
   int Align,
   LPCWSTR szText
 );

Parameters
hLcWnd
  Handle to LiteCAD graphics window.
hMpgon
  Handle to barcode multipolygon.
Gap
  Multiplication coefficient to the Height value. It defines a distance between text and barcode.
Height
  Height of text characters.
Align
  Text position:
LC_BTA_LEFT - aligned to left side of barcode,
LC_BTA_CENTER - aligned to center of barcode,
LC_BTA_RIGHT - aligned to right side of barcode
szText
  Text string.

Return Value

  If the function succeeds, the return value is nonzero (TRUE).

Remarks

  Additional text parameters are got from global properties:

Property Type Access Meaning
LC_PROP_G_TEXT_WS float RW Width scale coefficient (0.1 - 10.0)
LC_PROP_G_TEXT_CSPACE float RW Charspace coefficient (0.0 - 3.0)
LC_PROP_G_TEXT_FILL bool RW Filled characters
LC_PROP_G_TEXT_BORDER bool RW For filled characters: Display outline

See Also

  lcPaint_FontSelectlcPaint_MpgonAddBarcode